package com.itheima.chapter08;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

//创建不可变集合
//我的JDK是1.8所以报错
public class demo3 {
    public static void main(String[] args) {
      /*  List<String> list =List.of("a","b","c","d");
        ArrayList<Integer> arr =new ArrayList<>(List.of(1,2,3,4,5,6,7));
        Set<Integer> set =Set.of(1,2,3,4,5,6,7);
        Map<String ,String> map =Map.of("zhangsan","23","lisi","24","wangwu","25");
        Map<String ,String> map1=Map.ofentry(Map.enrty("zhangsan","23"),Map.enrty("lisi","24"),Map.enrty("wangwu","25"));*/


    }
}
